package com.guaoran.headFirst.observer.interfaces;

import com.guaoran.headFirst.observer.AbstractSubject;

/**
 * @author : 孤傲然
 * @Description :
 * @date :2018/4/27 14:11
 */
public class MySubject extends AbstractSubject {
    public static void main(String [] args){
        MySubject mySubject = new MySubject();
        mySubject.addObserver(new MyObserver());
        mySubject.addObserver(new MyObserver2());
        mySubject.setMessage("131313213");
    }
}
